package com.eorchis.module.classuser.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.basedao.entity.impl.AbstractBaseEntity;

/**
 * 
 * Title: UserClassTypeHour<br>
 * Description: 学员统计学时<br>
 * Copyright @ 2011~2017 Goldgov .All rights reserved.<br>
 * @author LiuCB
 * @createDate 2017-7-19
 * @version $Revision: $
 */
@Entity
@Table(name = "user_class_type_hour")
public class UserClassTypeHour extends AbstractBaseEntity implements IBaseEntity {
	private static final long serialVersionUID = 1L;
	
	private Integer ID;//主键
	private String hourYear;//年份
	private Double hours;//总学时
	private Double zxHour;//在线学时
	private Double zxZsHour;//在线折算学时
	private Double ztbHour;//专题班学时
	private Double zhutbHour;//主体班学时
	private Double zhongydxHour;//中央调训学时
	private Double jwpxHour;//境外培训学时
	private Double qitHour;//其他学时
	private Integer userId;//用户ID
	
	//非持久化属性
	private String yearHourTotal;//年度学时合计
	private String type;//培训班类型
	private Integer isTrainingClass;//培训班类型
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@GenericGenerator(name = "paymentableGenerator", strategy = "identity")
	@Column(name="id")
	public Integer getID() {
		return ID;
	}
	public void setID(Integer iD) {
		ID = iD;
	}
	@Column(name="ztb_Hour")
	public Double getZtbHour() {
		return ztbHour;
	}
	public void setZtbHour(Double ztbHour) {
		this.ztbHour = ztbHour;
	}
	@Column(name="zhutb_hour")
	public Double getZhutbHour() {
		return zhutbHour;
	}
	public void setZhutbHour(Double zhutbHour) {
		this.zhutbHour = zhutbHour;
	}
	@Column(name="zhongydx_Hour")
	public Double getZhongydxHour() {
		return zhongydxHour;
	}
	public void setZhongydxHour(Double zhongydxHour) {
		this.zhongydxHour = zhongydxHour;
	}
	@Column(name="jwpx_Hour")
	public Double getJwpxHour() {
		return jwpxHour;
	}
	public void setJwpxHour(Double jwpxHour) {
		this.jwpxHour = jwpxHour;
	}
	@Column(name="qit_Hour")
	public Double getQitHour() {
		return qitHour;
	}
	public void setQitHour(Double qitHour) {
		this.qitHour = qitHour;
	}
	@Column(name="zx_Hour")
	public Double getZxHour() {
		return zxHour;
	}
	public void setZxHour(Double zxHour) {
		this.zxHour = zxHour;
	}
	@Column(name="zxzs_Hour")
	public Double getZxZsHour() {
		return zxZsHour;
	}
	public void setZxZsHour(Double zxZsHour) {
		this.zxZsHour = zxZsHour;
	}
	@Column(name="hour_Year")
	public String getHourYear() {
		return hourYear;
	}
	public void setHourYear(String hourYear) {
		this.hourYear = hourYear;
	}
	@Column(name="hours")
	public Double getHours() {
		return hours;
	}
	public void setHours(Double hours) {
		this.hours = hours;
	}
	@Transient
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Transient
	public String getYearHourTotal() {
		return yearHourTotal;
	}
	public void setYearHourTotal(String yearHourTotal) {
		this.yearHourTotal = yearHourTotal;
	}
	@Column(name="user_id")
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Object userId) {
		this.userId = Integer.valueOf(userId.toString());
	}
	
	@Transient
	public Integer getIsTrainingClass() {
		return isTrainingClass;
	}
	public void setIsTrainingClass(Integer isTrainingClass) {
		this.isTrainingClass = isTrainingClass;
	}
}
